console.log('--------------------------------------------');
const m = new Set();
const m1 = new Set(['value1','value2','value3']);
console.log(m1.size);//3
console.log(m1);//Set { 'value1', 'value2', 'value3' }

const m3 = new Set({
    [Symbol.iterator]:function*(){
        yield 'value1';
        yield 'value2';
        yield 'value3';
    }
})
console.log(m3);//Set { 'value1', 'value2', 'value3' }
console.log('---------------------------------------------');
const m4 = new Set();
console.log(m4.has('value1'));//false
console.log(m4.size);//0
m4.add('Matt')
  .add('Silly');
console.log(m4.has('Matt'));//true
// console.log(m4.get('silly'));//TypeError: m4.get is not a function
console.log(m4.size);//2
m4.delete('Silly');
console.log(m4.has('Silly'));//false
console.log(m4.has('Matt'));//true
